﻿<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ include file="../commons/tag.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<script type="text/javascript">
		$(document).ready(function(){
			//聚焦第一个输入框
			$("#enterCount").focus();
		});	
 </script>
 
  <!--     主体从这开始    -->
  <div class="container">
  	<h2><span>添加出勤记录</span></h2>
     <form action="${ctx}/personnel/add" method="post" id="form1">
     <table class="global_table" cellpadding="0" cellspacing="0"> 
      <tr> 
        <th style="width:110px;">用户名：</th> 
        <td>
        	<select name="userId">
        		<c:forEach items="${users}" var="user">
        			<option value="${user.id}" <c:if test="${user.id eq attendance.user.id }">selected=selected</c:if>>${user.name}</option>
        		</c:forEach>
        	</select>
        </td>
       </tr>
       <tr>
         <th style="width:110px;">开始时间：</th>
        <td>
        	<input type="text" class="g_inp width150 Wdate" name="startDate" readonly="readonly" id="startDate" value="${attendance.startDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
         </td>
      </tr>
      <tr>
         <th style="width:110px;">结束时间：</th>
        <td>
        	<input type="text" class="g_inp width150 Wdate" name="endDate" readonly="readonly" id="endDate" value="${attendance.endDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
         </td>
      </tr>
    </table> 
   <br />
    <center>
    	<input type="reset" class="g_btn_blue2" value="清  空" />
      	&nbsp; &nbsp; &nbsp;
     	<input type="submit" class="g_btn_blue" value="保  存" id="searchBtn"/>
    </center>
    </form>
  </div>
  <!--     主体 end    -->
  <!-- 统计代码 begin-->
  <!--统计代码 end-->
</body>
</html>
